@import "../_base/_function";
.ui-calendar {
  .ui-calendar-item {
    width: 30%;
    min-width: 120px;
    margin-bottom: 5px;
    position: relative;
    @include inline-block();
    vertical-align: middle;
    &:after {
      position: absolute;
      width: 0;
      height: 0;
      border: 3px solid #a0a0a0;
      border-left: 3px solid transparent;
      border-top: 3px solid transparent;
      content: '';
      right: 10px;
      bottom: 6px;
    }
    .placeholder{
      left: 11px;
      top: 6px;
    }
    .ui-calendar-title {
      @extend %ellipsis-basic;
      padding: 0 0 0 10px;
      border: 1px solid $border-color;
      font-size: 14px;
      color: #999;
      position: relative;
      //cursor: pointer;
      line-height: 32px;
      width: 100%;
      outline: 0;
      &:focus,&.focus {
        color: $primary-color;
      }

    }
  }
  .cal-line {
    display: inline-block;
    vertical-align: bottom;
    line-height: 32px;
    margin: 0px 5px;
    color: #999;
    position: relative;
    top: -5px;
  }
  &.ui-row {
    .cal-line {
      margin: 0px;
    }
  }
  &.ui-error {
    .ui-calendar-title {
      border-color: $error;
    }
  }
  &.ui-border-bottom {
    .ui-pc-box{
      border-bottom: 1px solid $border-color;
      position: relative;
      &:after {
        position: absolute;
        width: 0;
        height: 0;
        border: 3px solid #a0a0a0;
        border-left: 3px solid transparent;
        border-top: 3px solid transparent;
        content: '';
        right: 10px;
        bottom: 6px;
      }
    }
    .ui-calendar-item{
      width: 80px;
      min-width: 80px;
      &:after{
        visibility: hidden;
      }

    }
    .cal-line{
      margin-right: 20px;
    }
    .ui-calendar-title {
      border: 0;
      padding-left: 0;
    }
    &.ui-error{
      .ui-pc-box{
        border-bottom-color: $error;
      }
    }
  }

}

.ui-calendar {
  .ui-m-select:last-child {
    margin-top: 0;
  }
}